Skip to content

fix(crowdin): migrate to website translator#209

Merged
ReenigneArcher merged 3 commits intomasterfrom
fix/crowdin/migrate-to-website-translator
Feb 19, 2026
Merged

fix(crowdin): migrate to website translator#209
ReenigneArcher merged 3 commits intomasterfrom
fix/crowdin/migrate-to-website-translator

Conversation

@ReenigneArcher
Copy link
Member

Description

JS Proxy Translator is deprecated and CrowdIn is forcing users to change to Website Translator.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@codecov
Copy link

codecov bot commented Feb 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (31e70b6) to head (93a690b).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #209   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines           89        90    +1     
  Branches        27        27           
=========================================
+ Hits            89        90    +1     
Files with missing lines Coverage Δ
src/js/crowdin.js 100.00% <100.00%> (ø)

@ReenigneArcher ReenigneArcher force-pushed the fix/crowdin/migrate-to-website-translator branch 5 times, most recently from e74e506 to 097cab4 Compare February 19, 2026 02:52
Replace direct window references with globalThis to avoid ReferenceError in non-browser or SSR contexts. Changed window.location.origin and window.proxyTranslator.init to globalThis equivalents, and updated the global exposure check to use globalThis before assigning initCrowdIn. Keeps module.exports for CommonJS usage.
@ReenigneArcher ReenigneArcher force-pushed the fix/crowdin/migrate-to-website-translator branch from 097cab4 to 597d411 Compare February 19, 2026 03:01
Adjust tests in tests/crowdin.test.js to expect local development values: baseUrl assertions now use "http://localhost" instead of the previous production URLs, and the CrowdIn distribution IDs were updated to new test values. The defaultLanguage expectation remains "en".
@sonarqubecloud
Copy link

@ReenigneArcher ReenigneArcher marked this pull request as ready for review February 19, 2026 03:17
@ReenigneArcher ReenigneArcher merged commit 4685acf into master Feb 19, 2026
15 checks passed
@ReenigneArcher ReenigneArcher deleted the fix/crowdin/migrate-to-website-translator branch February 19, 2026 03:19
@codecov
Copy link

codecov bot commented Feb 19, 2026

Bundle Report

Changes will decrease total bundle size by 926 bytes (-8.15%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
shared-web-array-push 10.44kB -926 bytes (-8.15%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: shared-web-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
crowdin.js -926 bytes 2.62kB -26.11%

Files in crowdin.js:

  • ./src/js/crowdin.js → Total Size: 3.73kB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

crowdin: JS Proxy Integration is deprecated

1 participant